package tms.sync.service;
import java.util.List;
import java.util.Map;

import tms.sync.dao.TmsSyncEXclassDao;
import tms.sync.dao.TmsSyncRealDao;
import tms.sync.dao.impl.TmsSyncEXclassDaoImpl;

public class TmsSyncEXclassService {
	
	private static TmsSyncEXclassService tmsSyncEXclassService;
	private TmsSyncEXclassDao tmsSyncEXclassDao;
	
	public TmsSyncEXclassService() {
		tmsSyncEXclassDao = new TmsSyncEXclassDaoImpl();
	}

	public static TmsSyncEXclassService getInstance(){
		if(tmsSyncEXclassService == null){
			tmsSyncEXclassService = new TmsSyncEXclassService();
		}
		return tmsSyncEXclassService;
	}
	
	public List<?> getUserInfo(
			String strUserId) throws Exception{
		return tmsSyncEXclassDao.getUserInfo(strUserId);
	}
	
	public Map getDeptDictionaryInfo() throws Exception{
		return tmsSyncEXclassDao.getDeptDictionaryInfo();
	}
	
	public int getDictionaryInsert(Map strInsertData) throws Exception{
		return tmsSyncEXclassDao.getDictionaryInsert(strInsertData);
	}
	
	public int getDeptInsert(Map strInsertData) throws Exception{
		return tmsSyncEXclassDao.getDeptInsert(strInsertData);
	}
}
